package com.bank.service.yg.ygimpl;

import com.bank.dao.yg.YgDao;
import com.bank.entity.bank.YgBank;
import com.bank.service.yg.YgService;
import com.bank.utils.ParamCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YgServiceImpl implements YgService {

    @Autowired
    private YgDao ygDao;

    @Override
    public List<YgBank> getYglist(ParamCondition p) {
        return ygDao.getYglist(p);
    }

    @Override
    public void updzt(Integer id) {
        ygDao.updzt(id);
    }

    @Override
    public YgBank getYgById(Integer id) {
        return ygDao.getYgById(id);
    }

    @Override
    public void updYgById(YgBank y) {
        ygDao. updYgById(y);
    }

    @Override
    public void addYg(YgBank y) {
        ygDao.addYg(y);
    }

    @Override
    public List<YgBank> getZzYg(ParamCondition p) {
        return ygDao.getZzYg(p);
    }

    @Override
    public int countZzYg() {
        return ygDao.countZzYg();
    }

    @Override
    public List ckjx(Integer id) {
        return ygDao.ckjx(id);
    }

    @Override
    public int countYg() {
        return ygDao.countYg();
    }

}
